package com.github.rpc4j.util;

import java.net.InetAddress;
import java.net.UnknownHostException;

public final class ServerUtil {
	
	public static String getServerIp(){
		try {
			return InetAddress.getLocalHost().getHostAddress();
		} catch (UnknownHostException e) {
			throw new  RuntimeException(e.getMessage());
		}
	}

}
